







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Randomly shuffles the items in a list or array, in place.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static void RandomShuffleInPlace<T>( IList<T> list ) |
Visual Basic (Declaration) |
---|
Public Shared Sub RandomShuffleInPlace(Of T) ( _ list As IList(Of T) _ ) |
Visual C++ |
---|
public: generic<typename T> static void RandomShuffleInPlace ( IList<T>^ list ) |
Parameters
- list
- IList<(Of <T>)>
The list or array to shuffle.
Type Parameters
- T
Remarks
Although arrays cast to IList<T> are normally read-only, this method
will work correctly and modify an array passed as list.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace